﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class SimBUS
    {
        public static List<SimDTO> TimKiem(String soThueBao, float giaTu, float giaDen, int loaiSim, int nhaMang, ref int soLuong, String run)
        {
            return SimDAO.TimKiem(soThueBao,giaTu, giaDen, loaiSim, nhaMang, ref soLuong, run);
        }

        public static List<SimDTO> DanhSachSim()
        {
            return SimDAO.DanhSachSim();
        }

        public static bool ThemSim(SimDTO simDTO, int maLoaiSim)
        {
            return SimDAO.ThemSim(simDTO, maLoaiSim);
        }

        public static int CapNhatSim(SimDTO simDTO)
        {
            return SimDAO.CapNhatSim(simDTO);
        }

        public static SimDTO ThongTinSim(int maSanPham)
        {
            return SimDAO.ThongTinSim(maSanPham);
        }
    }
}
